package chapter_6;

import java.nio.file.Paths;
import java.util.Scanner;

public class Test3 {

    public static void main(String[] args) {
        try(Scanner scanner = new Scanner(Paths.get("D:\\a.txt"))){
            while (scanner.hasNextLine()){
                System.out.println(scanner.nextLine());
            }
            int i = 9 / 0;
        }catch (Exception e){
            e.printStackTrace();
        }

    }
}
